%{
#include "syncconf.tab.h"
%}

%option noyywrap

%%

"="			return EQUAL;
"SCHEMANAME"		return SCHEMANAME;
"NODENAME"		return NODENAME;
"ODBC_SOURCE"		return ODBC_SOURCE;
"ARCHIVE_INBOX"		return ARCHIVE_INBOX;
"ARCHIVE_OUTBOX"	return ARCHIVE_OUTBOX;
"ARCHIVE_STRUCTURE"	return ARCHIVE_STRUCTURE;
"LOG_LEVEL"		return LOG_LEVEL;

"Y"			syncconflval.num=1; return YESNO;
"N"			syncconflval.num=0; return YESNO;
"'<T>/<M>/<N>'"		syncconflval.str=strdup(yytext);return STRUCTURE;
[0-3]			syncconflval.num=atoi(yytext);return LEVEL;
[[:alnum:]]*		syncconflval.str=strdup(yytext);return WORD;

[#].*			;
[[:space:]]*		;

%%
